package com.firstgroup.controller;

import com.firstgroup.Utils.ResponseResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 创作人 王箫凯
 * Date 2021/9/19
 * Time 0:15
 *
 * @author 王箫凯
 */
@Controller
@RequestMapping("/InterceptorResult")
public class InterceptorResult {

    @GetMapping("/NotLogin")
    @ResponseBody
    public ResponseResult notLogin(){
        return ResponseResult.error("您没有登录");
    }
    @GetMapping("/NoPower")
    @ResponseBody
    public ResponseResult noPower(){
        return ResponseResult.error("没有权限");
    }
    @GetMapping("/BedToken")
    @ResponseBody
    public ResponseResult bedToken(){
        return ResponseResult.error("token错误或已过期");
    }

}
